import http from '@/common/js/httpRequest'
//获取生产商列表
export function getManufacturerList (params) {
  return http({
    method: 'get',
    url: '/api/base/manufacturer/list',
    params
  })
}
//新增或修改生产商
export function saveOrUpdateManufacturer (data) {
	const url = !data.manufacturerId ? '/api/base/manufacturer/save' : '/api/base/manufacturer/update'
  return http({
    method: 'post',
    url: url,
    data
  })
}
//删除生产商
export function deleteManufacturer (ids) {
  return http({
    method: 'post',
    url: '/api/base/manufacturer/delete',
    data: ids,
    openDefultdata: true
  })
}